﻿using SQLite;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace WinFormsApp1.entity
{
    public class Setting
    {
        /// <summary>
        /// 主键、自增长
        /// </summary>
        [PrimaryKey, AutoIncrement]
        public int Id { get; set; }
        public string Title { get; set; } = "距离高考还有{}天！";
        public string DateTime { get; set; } = "2030-01-01";
        public int FontSize { get; set; } = 25;
        public string FontColor{ get; set; } = "#FF0000";
        public int LocationX { get; set; } = 100;
        public int LocationY { get; set; } = 100;
        public bool IsLock{ get; set; } = false;
        public bool IsAutoSetup{ get; set; } = false;


        public override string ToString()
        {
            return "Title:" + Title + "\n" +
                "DateTime:" + DateTime + "\n" +
                "FontSize:" + FontSize + "\n" +
                "FontColor:" + FontColor + "\n" +
                "LocationX:" + LocationX + "\n" +
                "LocationY:" + LocationY + "\n" +
                "IsLock:" + IsLock + "\n" +
                "IsAutoSetup:" + IsAutoSetup + ";";
        }

    }
}
